//
//  AddressBook.h
//  OCExam
//
//  Created by dllo on 16/6/2.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Person;
@interface AddressBook : NSObject

@property (nonatomic,retain)NSMutableDictionary *allPersonDic;



-(instancetype)init;

-(void)dealloc;

-(BOOL)addPerson:(Person *)aPerson;

-(Person *)findPersonWithPhoneNum:(NSString *)aPhoneNum;

-(NSArray *)findPersonsWithSex:(NSString *)aSex;

-(BOOL)changePersonWithName:(NSString *)name phoneNum:(NSString *)aNum sex:(NSString *)aSex age:(NSUInteger)aAge;

-(BOOL)deletePersonWithName:(NSString *)aPersonName;

-(BOOL)deleteGroup:(NSString *)aGroupName;

-(void)showAll;
@end
